
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
	<body class="pear-container">
		<div class="layui-card">
			<div class="layui-card-body">
				<form class="layui-form layui-form-pane" action="">
					<div class="layui-form-item">
                        
                        <div class="layui-form-item layui-inline">
                       <button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="query">
                           <i class="layui-icon layui-icon-search"></i>
                           查询
                       </button>
                       <button type="reset" class="pear-btn pear-btn-md">
                           <i class="layui-icon layui-icon-refresh"></i>
                           重置
                       </button>
                       </div>
                    </div>
				</form>
			</div>
		</div>
		<div class="layui-card">
			<div class="layui-card-body">
				<table id="dataTable" lay-filter="dataTable"></table>
			</div>
		</div>
	    <script type="text/html" id="toolbar">
			<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="batchRecovery">
		        <i class="layui-icon layui-icon-refresh"></i>
		        恢复数据
			</button>
		    <button class="pear-btn pear-btn-danger pear-btn-md" lay-event="batchRemove2">
		        <i class="layui-icon layui-icon-delete"></i>
		        彻底删除
		    </button>
		</script>
        <script>
        layui.use(['jquery','common','mycomm'], function() {
            let $ = layui.jquery;
			let common = layui.common;
			let mycomm = layui.mycomm;
            let MODULE_PATH = "{$MODULE_PATH}";
            
            
			
            let cols = [
                [{
                        type: 'checkbox'
                    },{
                       field: "id",
                       title: "",
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "title",
                       title: "标题",
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "aid",
                       title: "位置ID",
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "img",
                       title: "图片",
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "sort",
                       title: "排序",
                       unresize: "true",
                       align: "center"
                   }, {
                       field: "status",
                       title: "状态",
                       unresize: "true",
                       align: "center",
                       templet:"#status"
                   }, {
                        title: '操作',
                        toolbar: '#options',
                        unresize: true,
                        align: 'center',
                        width:180,
                    }
                ]
            ]

            mycomm.tableRecycle('{$controller_title}',MODULE_PATH,cols);
        })
    </script>
	{$LOAD_STYLE.bottom|raw}
	</body>
</html>
